Class PTPPacketImpl

All Implemented Interfaces:
IPCData, Pdu, PTPPacket, Signal

public class PTPPacketImpl extends PduImpl implements PTPPacket
  • Field Details

    • ts

      protected Short ts
    • m_msgId

      protected Short m_msgId
    • m_version

      protected Short m_version
    • m_messageLength

      protected Short m_messageLength
    • m_domainNumber

      protected Short m_domainNumber
    • m_flag

      protected int m_flag
    • m_correctionTime

      protected double m_correctionTime
    • m_correctionScaledFractionalTime

      protected int m_correctionScaledFractionalTime
    • m_sourcePortId

      protected String m_sourcePortId
    • m_sourcePortNum

      protected Short m_sourcePortNum
    • m_sequenceId

      protected Short m_sequenceId
    • m_control

      protected Short m_control
    • m_logMsgInterval

      protected int m_logMsgInterval
    • m_orgTimeSeconds

      protected double m_orgTimeSeconds
    • m_orgTimeNanoSeconds

      protected int m_orgTimeNanoSeconds
    • m_requestingSourcePortId

      protected String m_requestingSourcePortId
    • m_requestingSourcePortNum

      protected Short m_requestingSourcePortNum
    • m_currentUtcOffset

      protected Short m_currentUtcOffset
    • m_grandmasterPri1

      protected Short m_grandmasterPri1
    • m_class

      protected int m_class
    • m_accuracy

      protected String m_accuracy
    • m_variance

      protected int m_variance
    • m_grandmasterPri2

      protected Short m_grandmasterPri2
    • m_grandmasterId

      protected String m_grandmasterId
    • m_stepsRemoved

      protected Short m_stepsRemoved
    • m_timeSource

      protected Short m_timeSource
  • Constructor Details

    • PTPPacketImpl

      public PTPPacketImpl()
  • Method Details

    • getTs

      public Short getTs()
      Specified by:
      getTs in interface PTPPacket
      Returns:
      Short Returns a Short
    • setTs

      public void setTs(Short ts)
      Specified by:
      setTs in interface PTPPacket
      Parameters:
      ts - Takes in a parameter of ts
    • getM_msgId

      public Short getM_msgId()
      Specified by:
      getM_msgId in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_msgId

      public void setM_msgId(Short m_msgId)
      Specified by:
      setM_msgId in interface PTPPacket
      Parameters:
      m_msgId - Takes in a parameter of m_msgId
    • getM_version

      public Short getM_version()
      Specified by:
      getM_version in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_version

      public void setM_version(Short m_version)
      Specified by:
      setM_version in interface PTPPacket
      Parameters:
      m_version - Takes in a parameter of m_version
    • getM_messageLength

      public Short getM_messageLength()
      Specified by:
      getM_messageLength in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_messageLength

      public void setM_messageLength(Short m_messageLength)
      Specified by:
      setM_messageLength in interface PTPPacket
      Parameters:
      m_messageLength - Takes in a parameter of m_messageLength
    • getM_domainNumber

      public Short getM_domainNumber()
      Specified by:
      getM_domainNumber in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_domainNumber

      public void setM_domainNumber(Short m_domainNumber)
      Specified by:
      setM_domainNumber in interface PTPPacket
      Parameters:
      m_domainNumber - Takes in a parameter of m_domainNumber
    • getM_flag

      public int getM_flag()
      Specified by:
      getM_flag in interface PTPPacket
      Returns:
      int Returns a int
    • setM_flag

      public void setM_flag(int m_flag)
      Specified by:
      setM_flag in interface PTPPacket
      Parameters:
      m_flag - Takes in a parameter of m_flag
    • getM_correctionTime

      public double getM_correctionTime()
      Specified by:
      getM_correctionTime in interface PTPPacket
      Returns:
      double Returns a double
    • setM_correctionTime

      public void setM_correctionTime(double m_correctionTime)
      Specified by:
      setM_correctionTime in interface PTPPacket
      Parameters:
      m_correctionTime - Takes in a parameter of m_correctionTime
    • getM_correctionScaledFractionalTime

      public int getM_correctionScaledFractionalTime()
      Specified by:
      getM_correctionScaledFractionalTime in interface PTPPacket
      Returns:
      int Returns a int
    • setM_correctionScaledFractionalTime

      public void setM_correctionScaledFractionalTime(int m_correctionScaledFractionalTime)
      Specified by:
      setM_correctionScaledFractionalTime in interface PTPPacket
      Parameters:
      m_correctionScaledFractionalTime - Takes in a parameter of m_correctionScaledFractionalTime
    • getM_sourcePortId

      public String getM_sourcePortId()
      Specified by:
      getM_sourcePortId in interface PTPPacket
      Returns:
      String Returns a String
    • setM_sourcePortId

      public void setM_sourcePortId(String m_sourcePortId)
      Specified by:
      setM_sourcePortId in interface PTPPacket
      Parameters:
      m_sourcePortId - Takes in a parameter of m_sourcePortId
    • getM_sourcePortNum

      public Short getM_sourcePortNum()
      Specified by:
      getM_sourcePortNum in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_sourcePortNum

      public void setM_sourcePortNum(Short m_sourcePortNum)
      Specified by:
      setM_sourcePortNum in interface PTPPacket
      Parameters:
      m_sourcePortNum - Takes in a parameter of m_sourcePortNum
    • getM_sequenceId

      public Short getM_sequenceId()
      Specified by:
      getM_sequenceId in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_sequenceId

      public void setM_sequenceId(Short m_sequenceId)
      Specified by:
      setM_sequenceId in interface PTPPacket
      Parameters:
      m_sequenceId - Takes in a parameter of m_sequenceId
    • getM_control

      public Short getM_control()
      Specified by:
      getM_control in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_control

      public void setM_control(Short m_control)
      Specified by:
      setM_control in interface PTPPacket
      Parameters:
      m_control - Takes in a parameter of m_control
    • getM_logMsgInterval

      public int getM_logMsgInterval()
      Specified by:
      getM_logMsgInterval in interface PTPPacket
      Returns:
      int Returns a int
    • setM_logMsgInterval

      public void setM_logMsgInterval(int m_logMsgInterval)
      Specified by:
      setM_logMsgInterval in interface PTPPacket
      Parameters:
      m_logMsgInterval - Takes in a parameter of m_logMsgInterval
    • getM_orgTimeSeconds

      public double getM_orgTimeSeconds()
      Specified by:
      getM_orgTimeSeconds in interface PTPPacket
      Returns:
      double Returns a double
    • setM_orgTimeSeconds

      public void setM_orgTimeSeconds(double m_orgTimeSeconds)
      Specified by:
      setM_orgTimeSeconds in interface PTPPacket
      Parameters:
      m_orgTimeSeconds - Takes in a parameter of m_orgTimeSeconds
    • getM_orgTimeNanoSeconds

      public int getM_orgTimeNanoSeconds()
      Specified by:
      getM_orgTimeNanoSeconds in interface PTPPacket
      Returns:
      int Returns a int
    • setM_orgTimeNanoSeconds

      public void setM_orgTimeNanoSeconds(int m_orgTimeNanoSeconds)
      Specified by:
      setM_orgTimeNanoSeconds in interface PTPPacket
      Parameters:
      m_orgTimeNanoSeconds - Takes in a parameter of m_orgTimeNanoSeconds
    • getM_requestingSourcePortId

      public String getM_requestingSourcePortId()
      Specified by:
      getM_requestingSourcePortId in interface PTPPacket
      Returns:
      String Returns a String
    • setM_requestingSourcePortId

      public void setM_requestingSourcePortId(String m_requestingSourcePortId)
      Specified by:
      setM_requestingSourcePortId in interface PTPPacket
      Parameters:
      m_requestingSourcePortId - Takes in a parameter of m_requestingSourcePortId
    • getM_requestingSourcePortNum

      public Short getM_requestingSourcePortNum()
      Specified by:
      getM_requestingSourcePortNum in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_requestingSourcePortNum

      public void setM_requestingSourcePortNum(Short m_requestingSourcePortNum)
      Specified by:
      setM_requestingSourcePortNum in interface PTPPacket
      Parameters:
      m_requestingSourcePortNum - Takes in a parameter of m_requestingSourcePortNum
    • getM_currentUtcOffset

      public Short getM_currentUtcOffset()
      Specified by:
      getM_currentUtcOffset in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_currentUtcOffset

      public void setM_currentUtcOffset(Short m_currentUtcOffset)
      Specified by:
      setM_currentUtcOffset in interface PTPPacket
      Parameters:
      m_currentUtcOffset - Takes in a parameter of m_currentUtcOffset
    • getM_grandmasterPri1

      public Short getM_grandmasterPri1()
      Specified by:
      getM_grandmasterPri1 in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_grandmasterPri1

      public void setM_grandmasterPri1(Short m_grandmasterPri1)
      Specified by:
      setM_grandmasterPri1 in interface PTPPacket
      Parameters:
      m_grandmasterPri1 - Takes in a parameter of m_grandmasterPri1
    • getM_class

      public int getM_class()
      Specified by:
      getM_class in interface PTPPacket
      Returns:
      int Returns a int
    • setM_class

      public void setM_class(int m_class)
      Specified by:
      setM_class in interface PTPPacket
      Parameters:
      m_class - Takes in a parameter of m_class
    • getM_accuracy

      public String getM_accuracy()
      Specified by:
      getM_accuracy in interface PTPPacket
      Returns:
      String Returns a String
    • setM_accuracy

      public void setM_accuracy(String m_accuracy)
      Specified by:
      setM_accuracy in interface PTPPacket
      Parameters:
      m_accuracy - Takes in a parameter of m_accuracy
    • getM_variance

      public int getM_variance()
      Specified by:
      getM_variance in interface PTPPacket
      Returns:
      int Returns a int
    • setM_variance

      public void setM_variance(int m_variance)
      Specified by:
      setM_variance in interface PTPPacket
      Parameters:
      m_variance - Takes in a parameter of m_variance
    • getM_grandmasterPri2

      public Short getM_grandmasterPri2()
      Specified by:
      getM_grandmasterPri2 in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_grandmasterPri2

      public void setM_grandmasterPri2(Short m_grandmasterPri2)
      Specified by:
      setM_grandmasterPri2 in interface PTPPacket
      Parameters:
      m_grandmasterPri2 - Takes in a parameter of m_grandmasterPri2
    • getM_grandmasterId

      public String getM_grandmasterId()
      Specified by:
      getM_grandmasterId in interface PTPPacket
      Returns:
      String Returns a String
    • setM_grandmasterId

      public void setM_grandmasterId(String m_grandmasterId)
      Specified by:
      setM_grandmasterId in interface PTPPacket
      Parameters:
      m_grandmasterId - Takes in a parameter of m_grandmasterId
    • getM_stepsRemoved

      public Short getM_stepsRemoved()
      Specified by:
      getM_stepsRemoved in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_stepsRemoved

      public void setM_stepsRemoved(Short m_stepsRemoved)
      Specified by:
      setM_stepsRemoved in interface PTPPacket
      Parameters:
      m_stepsRemoved - Takes in a parameter of m_stepsRemoved
    • getM_timeSource

      public Short getM_timeSource()
      Specified by:
      getM_timeSource in interface PTPPacket
      Returns:
      Short Returns a Short
    • setM_timeSource

      public void setM_timeSource(Short m_timeSource)
      Specified by:
      setM_timeSource in interface PTPPacket
      Parameters:
      m_timeSource - Takes in a parameter of m_timeSource
    • getFieldType

      public PtmpTypeValue getFieldType(String fieldName)
      Overrides:
      getFieldType in class PduImpl
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Overrides:
      read in class PduImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object
    • pduRead

      public void pduRead(EncodedBuffer buffer)
      Specified by:
      pduRead in interface Signal
      Overrides:
      pduRead in class PduImpl
    • getOrderedFieldNames

      public List<String> getOrderedFieldNames()
      Specified by:
      getOrderedFieldNames in interface Signal
      Overrides:
      getOrderedFieldNames in class PduImpl
    • encodeTypeAndPayload

      public void encodeTypeAndPayload(EncodedBuffer buffer)
      Specified by:
      encodeTypeAndPayload in interface Signal
      Overrides:
      encodeTypeAndPayload in class PduImpl